const Mock =require('mockjs');
const Random = Mock.Random;

function getComponentList() {
    
    return [
        {
            fe_id: 'c1',
            type: 'questionTitle',
            title: '标题',
            isHidden: false,
            isLocked: false,
            props: {
                text:'一行标题',
                level: 1,
                isCenter: false,
            },
        },
        {
            fe_id: 'c2',
            type: 'questionInput',
            title: '输入框1',
            isHidden: false,
            isLocked: false,
            props: {
               title: '输入框标题',
               placeholder: '请输入...',
            },
        },
        {
            fe_id: 'c3',
            type: 'questionInput',
            title: '输入框2',
            isHidden: false,
            isLocked: false,
            props: {
               title: '你的电话',
               placeholder: '请输入电话...',
            },
        },
        {
            fe_id:'c4',
            type: 'questionParagraph',
            title: '段落',
            isHidden: false,
            isLocked: false,
            props: {
               title: '一行段落',
               isCenter: false,
            },
        },
        {
            fe_id: 'c5',
            type: 'questionInfo',
            title: '问卷信息',
            isHidden: false,
            isLocked: false,
            props: {
               title: '问卷标题',
               desc: '问卷描述',
            },
        },
        {
            fe_id:'c6',
            type: 'questionRadio',
            title: '单选项',
            isHidden: false,
            isLocked: false,
            props: {
               title: '问卷单选项',
               value:'item1',
               options:[{
                text:'自行车',
                value: 'item1',
               },{
                text:'汽车',
                value: 'item2',
               },{
                text:'公交车',
                value: 'item3',
               }],
               isVertical: false,

            },
        },
        {
            fe_id:'c7',
            type: 'questionCheckbox',
            title: '多选项',
            isHidden: false,
            isLocked: false,
            props: {
               title: '问卷多选项',
               list:[{
                text:'选项1',
                value: 'item1',
                checked: true,
               },{
                text:'选项2',
                value: 'item2',
                checked: false,
               },{
                text:'选项3',
                value: 'item3',
                checked: false,
               }],
               isVertical: false,
            },
        },
        {
            fe_id: 'c8',
            type: 'questionTextArea',
            title: '多行输入框',
            isHidden: false,
            isLocked: false,
            props: {
               title: '你的建议',
               placeholder: '请输入建议内容...',
            },
        },
    ];
}


module.exports = getComponentList;